package com.zheng.upms.dao.model;

import java.io.Serializable;

public class UpmsRoleSystem implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer roleSystemId;

    /**
     * 角色编号
     *
     * @mbg.generated
     */
    private Integer roleId;

    /**
     * 系统编号
     *
     * @mbg.generated
     */
    private Integer systemId;

    private static final long serialVersionUID = 1L;

    public Integer getRoleSystemId() {
        return roleSystemId;
    }

    public void setRoleSystemId(Integer roleSystemId) {
        this.roleSystemId = roleSystemId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getSystemId() {
        return systemId;
    }

    public void setSystemId(Integer systemId) {
        this.systemId = systemId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roleSystemId=").append(roleSystemId);
        sb.append(", roleId=").append(roleId);
        sb.append(", systemId=").append(systemId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UpmsRoleSystem other = (UpmsRoleSystem) that;
        return (this.getRoleSystemId() == null ? other.getRoleSystemId() == null : this.getRoleSystemId().equals(other.getRoleSystemId()))
            && (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
            && (this.getSystemId() == null ? other.getSystemId() == null : this.getSystemId().equals(other.getSystemId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoleSystemId() == null) ? 0 : getRoleSystemId().hashCode());
        result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
        result = prime * result + ((getSystemId() == null) ? 0 : getSystemId().hashCode());
        return result;
    }
}